package com.hanfu.ucenter.web.exception;


/**
 * Created by dufei on 19/9/18.
 */
public abstract class BaseBusinessException extends Exception {

    private String code;
    private String msg;

    public BaseBusinessException() {
    }

    public BaseBusinessException(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    @Override
    public String toString() {
        return "{" +
                "code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                '}';
    }
}

